Popover: Clarify/guard out rect of get_pointing_to
authorDaniel Boles <dboles.src@gmail.com>
Sun, 11 Jun 2023 10:37:45 +0000 (11:37 +0100)
committerRaspbian forward porter <root@raspbian.org>
Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)
commit437ee63f38aa8ff0d8d7b144a5800bc957a97edb
treee39aa596c43d96297247ef35fd1834dcec59cce3
parent80273f302b72e2876718a204317abd04bab86c71
Popover: Clarify/guard out rect of get_pointing_to

Clarify that we zero out the widget coords and only keep its dimensions.

If we have no widget to fall-back to, memset to 0 the output @rect since
we return FALSE whether or not we have widget, so protect users from not
knowing if there was a widget and possibly accessing uninitialised ints.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/893#note_1766079
Origin: 3.24.39, commit:a6d40b610be6acb635d8732c11bb6d866bf2e95d

Gbp-Pq: Name Popover-Clarify-guard-out-rect-of-get_pointing_to.patch
gtk/gtkpopover.c